@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <input type="hidden" id="id" value="${item.id}">

            <div class="row">
                <div class="col-sm-12 b-r">
                            <#input id="title" name="标题" value="${item.title}" />
                </div>

                <div class="col-sm-12">
                            <#img id="slt" name="缩略图" imgurl="${item.slt}" />
                </div>
                 <div class="col-sm-12">
                  <input  id="content" name="内容" underline="true" type="hidden" value=""/>
                <!-- 加载编辑器的容器
				    -->
				    <script id="editor"   type="text/plain"> 
      			${item.content}
   					 </script>
					    <!-- 配置文件 -->
					    <script type="text/javascript" src="${ctxPath}/static/js/plugins/ueditor/ueditor.config.js"></script>
					    <!-- 编辑器源码文件 -->
					    <script type="text/javascript" src="${ctxPath}/static/js/plugins/ueditor/ueditor.all.min.js"></script>
					    <script type="text/javascript">
							        UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
							        UE.Editor.prototype.getActionUrl = function(action) {
							            if (action == 'uploadimage' || action == 'uploadscrawl' || action == 'uploadimage') {
							                return '${ctxPath}/imgUpload';
							                //'http://localhost:8080/imgUpload';为方法imgUpload的访问地址
							            } else {
							                return this._bkGetActionUrl.call(this, action);
							            }
							        }
							</script>
					    <!-- 实例化编辑器 -->
					    <script type="text/javascript">
					        var ue = UE.getEditor('editor');
					        
					    </script>
					    <!-- $(document).ready(function(){  
					            ue.ready(function() {//编辑器初始化完成再赋值  
					                ue.setContent('${item.content}');  //赋值给UEditor  
					            });  
					              
					        });   -->
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="ArticleInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="ArticleInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/cloudPlatform/article/article_info.js"></script>
@}
